package com.vehicle.mapper;

import com.vehicle.pojo.InsuranceRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InsuranceRecordMapper {
    //分页带搜索
    public List<InsuranceRecord>selectInsuranceRecordByPage(InsuranceRecord insuranceRecord);

    /**
     * 根据id删除
     * @param insuranceid
     */
    @Deprecated
    public void deleteInsuranceRecordByid(@Param("insuranceid") int insuranceid);
    public void updateStatusById(@Param("insuranceid") int insuranceid);

    /**
     * 增加保险记录
     * @param insuranceRecord
     */
    public void addInsuranceRecord(InsuranceRecord insuranceRecord);

    /**
     * 修改保险记录
     * @param insuranceRecord
     */
    public void updateInsuranceRecord(InsuranceRecord insuranceRecord);

}
